import request from '@/utils/request'

// 查询课节学员列表
export function listKjStudent(query) {
  return request({
    url: '/jiaopei/kjStudent/list',
    method: 'get',
    params: query
  })
}

// 查询课节学员详细
export function getKjStudent(id) {
  return request({
    url: '/jiaopei/kjStudent/' + id,
    method: 'get'
  })
}

// 新增课节学员
export function addKjStudent(data) {
  return request({
    url: '/jiaopei/kjStudent',
    method: 'post',
    data: data
  })
}

// 修改课节学员
export function updateKjStudent(data) {
  return request({
    url: '/jiaopei/kjStudent',
    method: 'put',
    data: data
  })
}

// 删除课节学员
export function delKjStudent(id) {
  return request({
    url: '/jiaopei/kjStudent/' + id,
    method: 'delete'
  })
}
